import request from '/@/utils/request'
// 查询国标设备和角色对应列表
export function listCameraRole(query:object) {
  return request({
    url: '/api/v1/system/cameraRole/list',
    method: 'get',
    params: query
  })
}
// 查询国标设备和角色对应详细
export function getCameraRole(id:number) {
  return request({
    url: '/api/v1/system/cameraRole/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增国标设备和角色对应
export function addCameraRole(data:object) {
  return request({
    url: '/api/v1/system/cameraRole/add',
    method: 'post',
    data: data
  })
}
// 修改国标设备和角色对应
export function updateCameraRole(data:object) {
  return request({
    url: '/api/v1/system/cameraRole/edit',
    method: 'put',
    data: data
  })
}
// 删除国标设备和角色对应
export function delCameraRole(ids:number[]) {
  return request({
    url: '/api/v1/system/cameraRole/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
